<h1>Empresas List</h1>

<table>
  <thead>
    <tr>
      <th>Id</th>
      <th>Padre</th>
      <th>Entidad</th>
      <th>Nombre</th>
      <th>Rif</th>
      <th>Logo</th>
      <th>Correo</th>
      <th>Correo inf</th>
      <th>Expires at</th>
      <th>Iva</th>
      <th>Created at</th>
      <th>Updated at</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($empresas as $empresa): ?>
    <tr>
      <td><a href="<?php echo url_for('empresa/edit?id='.$empresa->getId()) ?>"><?php echo $empresa->getId() ?></a></td>
      <td><?php echo $empresa->getPadre() ?></td>
      <td><?php echo $empresa->getEntidadId() ?></td>
      <td><?php echo $empresa->getNombre() ?></td>
      <td><?php echo $empresa->getRif() ?></td>
      <td><?php echo $empresa->getLogo() ?></td>
      <td><?php echo $empresa->getCorreo() ?></td>
      <td><?php echo $empresa->getCorreoInf() ?></td>
      <td><?php echo $empresa->getExpiresAt() ?></td>
      <td><?php echo $empresa->getIva() ?></td>
      <td><?php echo $empresa->getCreatedAt() ?></td>
      <td><?php echo $empresa->getUpdatedAt() ?></td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>

  <a href="<?php echo url_for('empresa/new') ?>">New</a>
